package com.qianfeng.entity;

import java.util.Date;

/**
 * 药品病人中间表
 */
public class DrugRegistration {
    private Integer dreId;//ID
    private Integer drId;//药品编号,关联药品表主键
    private Integer rId;//挂号编号，关联挂号表主键
    private Integer dreNumber;//开药数量
    private Integer drePushNo;//已发药品数量
    private Date dreTime;//创建时间
    private Date updateTime;//设置当前时间，并且自动更更新时间
    private Drug drug;//关联药品表
    private Registration registration;//关联病人表

    @Override
    public String toString() {
        return "DrugRegistration{" +
                "dreId=" + dreId +
                ", drId=" + drId +
                ", rId=" + rId +
                ", dreNumber=" + dreNumber +
                ", drePushNo=" + drePushNo +
                ", dreTime=" + dreTime +
                ", updateTime=" + updateTime +
                ", drug=" + drug +
                ", registration=" + registration +
                '}';
    }

    public Integer getDreId() {
        return dreId;
    }

    public void setDreId(Integer dreId) {
        this.dreId = dreId;
    }

    public Integer getDrId() {
        return drId;
    }

    public void setDrId(Integer drId) {
        this.drId = drId;
    }

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public Integer getDreNumber() {
        return dreNumber;
    }

    public void setDreNumber(Integer dreNumber) {
        this.dreNumber = dreNumber;
    }

    public Integer getDrePushNo() {
        return drePushNo;
    }

    public void setDrePushNo(Integer drePushNo) {
        this.drePushNo = drePushNo;
    }

    public Date getDreTime() {
        return dreTime;
    }

    public void setDreTime(Date dreTime) {
        this.dreTime = dreTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Drug getDrug() {
        return drug;
    }

    public void setDrug(Drug drug) {
        this.drug = drug;
    }

    public Registration getRegistration() {
        return registration;
    }

    public void setRegistration(Registration registration) {
        this.registration = registration;
    }

    public DrugRegistration(Integer dreId, Integer drId, Integer rId, Integer dreNumber, Integer drePushNo, Date dreTime, Date updateTime, Drug drug, Registration registration) {
        this.dreId = dreId;
        this.drId = drId;
        this.rId = rId;
        this.dreNumber = dreNumber;
        this.drePushNo = drePushNo;
        this.dreTime = dreTime;
        this.updateTime = updateTime;
        this.drug = drug;
        this.registration = registration;
    }

    public DrugRegistration() {
    }
}
